package org.gnut.tinyurl.portlet.servlet;

import javax.portlet.PortletRequest;
import javax.servlet.http.HttpServletRequest;

public class DefaultRemoteProvider implements RemoteProvider{
	protected HttpServletRequest httpServletRequest;
	public void setPortletRequest(PortletRequest portletRequest) {
		
	}

	public void setHttpServletRequest(HttpServletRequest httpServletRequest) {
		this.httpServletRequest  = httpServletRequest;
		
	}

	public String getRemoteAddr() {
		
		return httpServletRequest.getRemoteAddr();
	}

	public String getRemoteHost() {
		
		return httpServletRequest.getRemoteHost();
	}

	public int getRemotePort() {
		
		return  httpServletRequest.getRemotePort();
	}

}
